package Test;

import java.util.ArrayList;
import org.junit.Test;
import DBLayer.DBTrainingGroup;
import ModelLayer.TrainingGroup;

public class TestDBTrainingGroup {

	DBTrainingGroup dbtg = new DBTrainingGroup();
	ArrayList<TrainingGroup> tglist = dbtg.getAllTrainingGroup(false);

	@Test
	public void testGetAllTrainingGroup() {
	    System.out.println("\nTrainingGroup size : " + tglist.size() + "\n");
	}

	@Test
	public void testSearchTrainingGroupID() {
		int id = 1;
		while(id <= tglist.size())
		{
			TrainingGroup tg = dbtg.searchTrainingGroupID(id, false);
			System.out.println("TrainingGroupID    : " + tg.getTrainingGroupID());
			System.out.println("Name               : " + tg.getName());
			System.out.println("TrainingCategoryID : " + tg.getTrainingCategory().getTrainingCategoryID());
			System.out.println("---------------------------------------");
			id++;
		}
	}
/*
	@Test
	public void testSearchTrainingGroupName() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingGroupID(){
		fail("Not yet implemented");
	}
*/
}
